package com.anlu.base.model.ao;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * Description:TODO 详细描述
 * <p>
 * <p>
 *
 * @author anlu
 * @date 2024/9/29 10:37
 */

@Data
public class BaseSignAO {
    /**
     * 服务id
     */
    @NotEmpty(message = "invalid param value")
    private String serviceId;
    /**
     * 签名
     */
    @NotEmpty(message = "invalid param value")
    private String sign;
    /**
     * 时间戳
     */
    @NotNull(message = "invalid param value")
    private Long timestamp;


    public @NotEmpty(message = "invalid param value") String getServiceId() {
        return serviceId;
    }

    public void setServiceId(@NotEmpty(message = "invalid param value") String serviceId) {
        this.serviceId = serviceId;
    }

    public @NotEmpty(message = "invalid param value") String getSign() {
        return sign;
    }

    public void setSign(@NotEmpty(message = "invalid param value") String sign) {
        this.sign = sign;
    }

    public @NotNull(message = "invalid param value") Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(@NotNull(message = "invalid param value") Long timestamp) {
        this.timestamp = timestamp;
    }
}
